/**
 * @author Daniel Latorre
 */
class Comment {
	String name
	String email
	String web
	Date createdAt = new Date()
	String comment
	Integer commentableId
	String commentableType
	Integer userId = 0
	static mapping = {
		comment type:'text'
    }
	static constraints= {
		name(blank:false)
		email(blank:false,email:true)
		comment(blank:false)
	}
}
